import request from '@/utils/request'

export const getUser = () => request({ method: 'GET', url: '/auth/currentUser' })

export const login = ({ username, password }) => {
  return request({
    method: 'POST',
    url: '/auth/login',
    data: {
      username,
      password
    }
    // token 请求头 统一在 请求拦截器中注入，不需要每个请求都带
    // headers: {
    //   Authorization: ``
    // }
  })
}
